package com.kingyea.kim.base;

public enum ErrorMsg {

    TEST(1, "test"),
    SUCCESS(200, "请求成功"),
    UNAUTHORIZED(401, "用户没有登录"),
    SYSTEM_ERROR(500, "系统错误");

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ErrorMsg(int code, String message) {
        this.code = code;
        this.message = message;
    }
}